#pragma once
#include "base.hpp"
#include "../map/map.hpp"

class Robot:public ToolBase{
public:
	char MapChar() const {return outCh;};
	Color MapColor() const {return color;};
	bool PassFunction(User& user,std::vector<Land>& map,std::unordered_map<int,User*>& users){return false;};
	void PutFunction(int putPos,User& user,std::vector<Land>& map,std::unordered_map<int,User*>& users){
		for (int i=user.GetPos()+1; i<user.GetPos()+11; i++) {
			auto tool=map[i].GetTools();
			if (tool!=nullptr) {
				map[i].DeleteTool();
				map[i].Reset();
			}
		}
	};
	ToolType GetType(){return ToolType::Robot;};
};
